package notes.java.sjms23.t13_state;

// 环境类，维护一个state对象
public class StateContext {

    private State state;
    
    public void setState(State state) {
        System.out.println("更改状态。。。");
        this.state = state;
        this.state.handle();
    }
    
}
